package net.web.milkteapos.bean;

import java.util.List;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Many;
import org.nutz.dao.entity.annotation.Table;

/**
 * 产品类型表
 */
@Table("product_type")
public class ProductType {

	
	@Id(auto=false)
	@Column("type_id")
	private int typeId;
	@Column("type_name")
	private String typeName;
	
	@Many(target = Product.class, field = "productTypeId")
	private List<Product> products;
	
	public int getTypeId() {
		return typeId;
	}
	public void setTypeId(int id) {
		typeId = id;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String name) {
		typeName = name;
	}
	public List<Product> getProducts() {
		return products;
	}
	public void setProducts(List<Product> products) {
		this.products = products;
	}
	
}
